#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>

int my_strcmp(const char* str1, const char* str2)
{
	while (*str1 == *str2)
	{
		if (*str1 != '\0')
		{
			return 0;
		}
		str1++;
		str2++;
	}
	return *str1 - *str2;
}

int main()
{
	char arr1[] = "abc";
	char arr2[] = "aqc";
	char arr3[] = "abcd";

	printf("%d\n", strcmp(arr1, arr2));
	printf("%d\n", strcmp(arr1, arr3));
	printf("%d\n", strcmp(arr2, arr3));
	if (my_strcmp(arr1, arr2) > 0)
	{
		printf(">=");
	}
	else
	{
		printf("<");
	}
	return 0;
}